import { createRouter, createWebHashHistory } from "vue-router";
import { staticRoutes } from "@/router/route";
import { reqPermission } from "@/api/home";
var router = createRouter({
  history: createWebHashHistory(),
  routes: staticRoutes,
  // 滚动行为：当路由组件切换时滚动条的位置
  scrollBehavior() {
    return { top: 0, left: 0 };
  },
});
// router.beforeEach((to, from, next) => {
//   if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
//     window.location.href = '/move.html/'
//     return
//   }
//   next()
// })

// 导出路由
export default router;
